package cn.buk.tms.flight.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用 BukPM 的 eterm接口进行BSP自动开票
 * @author yfdai
 */
@Service
public class AutoTicketBspEtermWorker implements AutoTicketStrategy {

  private final BspEtermAutoTicketService bspEtermAutoTicketService;

  @Autowired
  public AutoTicketBspEtermWorker(
          BspEtermAutoTicketService bspEtermAutoTicketService
  ) {
    this.bspEtermAutoTicketService = bspEtermAutoTicketService;
  }

  @Override
  public void autoTicketFlightOrder(int enterpriseId, String username, int orderId) {
    bspEtermAutoTicketService.autoTicketFlightOrder(enterpriseId, username, orderId);
  }
}
